// To parse this JSON data, do
//
//     final userData = userDataFromJson(jsonString);

class UserData {
  UserData({
    this.userId,
    this.state,
    this.type,
    this.addId,
    this.realName,
    this.loginName,
    this.email,
    this.nickname,
    this.showNickname,
    this.phoneNumber,
    this.createTime,
    this.updateTime,
    this.comment,
    this.passwd,
    this.identity,
    this.message,
    this.sex,
    this.birthdate,
    this.province,
    this.provinceName,
    this.city,
    this.cityName,
    this.accountHead,
    this.keyWord,
    this.workUnit,
    this.jobDuties,
    this.companyName,
    this.companyCode,
    this.companyType,
    this.companyTypeLabel,
    this.businessLicense,
    this.serviceProviders,
    this.companyProviders,
    this.companyLogo,
    this.companyEmail,
    this.vipLevel,
    this.vipLevelIcon,
    this.token,
    this.roleIdList,
    this.menuList,
    this.permList,
    this.userIntegral,
    this.userName,
  });

  int userId;
  int state;
  String type;
  dynamic addId;
  String realName;
  dynamic loginName;
  dynamic email;
  dynamic nickname;
  int showNickname;
  String phoneNumber;
  dynamic createTime;
  dynamic updateTime;
  dynamic comment;
  dynamic passwd;
  String identity;
  dynamic message;
  int sex;
  dynamic birthdate;
  String province;
  dynamic provinceName;
  String city;
  dynamic cityName;
  String accountHead;
  dynamic keyWord;
  String workUnit;
  String jobDuties;
  dynamic companyName;
  dynamic companyCode;
  dynamic companyType;
  String companyTypeLabel;
  dynamic businessLicense;
  dynamic serviceProviders;
  dynamic companyProviders;
  dynamic companyLogo;
  dynamic companyEmail;
  String vipLevel;
  String vipLevelIcon;
  String token;
  dynamic roleIdList;
  dynamic menuList;
  dynamic permList;
  int userIntegral;
  dynamic userName;

  factory UserData.fromJson(Map<String, dynamic> json) => UserData(
        userId: json["userId"],
        state: json["state"],
        type: json["type"],
        addId: json["addId"],
        realName: json["realName"],
        loginName: json["loginName"],
        email: json["email"],
        nickname: json["nickname"],
        showNickname: json["showNickname"],
        phoneNumber: json["phoneNumber"],
        createTime: json["createTime"],
        updateTime: json["updateTime"],
        comment: json["comment"],
        passwd: json["passwd"],
        identity: json["identity"],
        message: json["message"],
        sex: json["sex"],
        birthdate: json["birthdate"],
        province: json["province"],
        provinceName: json["provinceName"],
        city: json["city"],
        cityName: json["cityName"],
        accountHead: json["accountHead"],
        keyWord: json["keyWord"],
        workUnit: json["workUnit"],
        jobDuties: json["jobDuties"],
        companyName: json["companyName"],
        companyCode: json["companyCode"],
        companyType: json["companyType"],
        companyTypeLabel: json["companyTypeLabel"],
        businessLicense: json["businessLicense"],
        serviceProviders: json["serviceProviders"],
        companyProviders: json["companyProviders"],
        companyLogo: json["companyLogo"],
        companyEmail: json["companyEmail"],
        vipLevel: json["vipLevel"],
        vipLevelIcon: json["vipLevelIcon"],
        token: json["token"],
        roleIdList: json["roleIdList"],
        menuList: json["menuList"],
        permList: json["permList"],
        userIntegral: json["userIntegral"],
        userName: json["userName"],
      );

  Map<String, dynamic> toJson() => {
        "userId": userId,
        "state": state,
        "type": type,
        "addId": addId,
        "realName": realName,
        "loginName": loginName,
        "email": email,
        "nickname": nickname,
        "showNickname": showNickname,
        "phoneNumber": phoneNumber,
        "createTime": createTime,
        "updateTime": updateTime,
        "comment": comment,
        "passwd": passwd,
        "identity": identity,
        "message": message,
        "sex": sex,
        "birthdate": birthdate,
        "province": province,
        "provinceName": provinceName,
        "city": city,
        "cityName": cityName,
        "accountHead": accountHead,
        "keyWord": keyWord,
        "workUnit": workUnit,
        "jobDuties": jobDuties,
        "companyName": companyName,
        "companyCode": companyCode,
        "companyType": companyType,
        "companyTypeLabel": companyTypeLabel,
        "businessLicense": businessLicense,
        "serviceProviders": serviceProviders,
        "companyProviders": companyProviders,
        "companyLogo": companyLogo,
        "companyEmail": companyEmail,
        "vipLevel": vipLevel,
        "vipLevelIcon": vipLevelIcon,
        "token": token,
        "roleIdList": roleIdList,
        "menuList": menuList,
        "permList": permList,
        "userIntegral": userIntegral,
        "userName": userName,
      };
}
